<div class="top-tip" *ngIf="!isEdit">首次服务,需上传行驶证照片</div>
<div class="photo-container">
  <p class="m5">行驶证正面</p>
  <div id="photoA">
    <ons-icon icon="plus" size="24px" *ngIf="!srcA"></ons-icon>
    <input type="file" accept="image/*" capture="camera" (change)="addA($event)">
    <img [src]="srcA" *ngIf="srcA">
  </div>
</div>
<div class="photo-container">
  <p class="m5">行驶证背面</p>
  <div id="photoB">
    <ons-icon icon="plus" size="24px" *ngIf="!srcB"></ons-icon>
    <input type="file" accept="image/*" capture="camera" (change)="addB($event)">
    <img [src]="srcB" *ngIf="srcB">
  </div>
</div>
<div class="flex-center" style="margin-top:40px">
    <!-- <ons-button (click)="upload()" *ngIf="!uploading">上传行驶证</ons-button> -->
    <ons-button [disabled]="!srcA || !srcB" (click)="upload()" *ngIf="!uploading">上传行驶证</ons-button>
  <ons-button disabled="true" *ngIf="uploading">上传中…</ons-button>
</div>
